package com.atl.enity.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2024-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("promotion")
@ApiModel(value="Promotion对象", description="")
public class Promotion implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动名称")
    private String promotionName;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "消费要求")
    private BigDecimal minConsumption;

    @ApiModelProperty(value = "发放对象")
    private String targetGroup;

    @ApiModelProperty(value = "应领人数")
    private Integer expectedRecipients;

    @ApiModelProperty(value = "已领人数")
    private Integer receivedRecipients;

    @ApiModelProperty(value = "已用人数")
    private Integer usedRecipients;

    @ApiModelProperty(value = "未领人数")
    private Integer remainingRecipients;

    @ApiModelProperty(value = "发放方式")
    private String distributionMethod;

    @ApiModelProperty(value = "有效期开始日期")
    private LocalDate validPeriodStart;

    @ApiModelProperty(value = "有效期结束日期")
    private LocalDate validPeriodEnd;

    @ApiModelProperty(value = "跳转地址")
    private String redirectUrl;

    @ApiModelProperty(value = "状态")
    private String status;


}
